<%@ include file="/inc/header.jsp" %>

<script language="JavaScript1.2">
<!--
	function reloadAction()
	{
		document.ReportForm.action='<html:rewrite page="/initReportAction.do"/>';
		document.ReportForm.submit.click();
	}
//-->
</script>

      <span class="titrePage">
         <bean:message key="entity.Report"/>
      </span>
      <blockquote>
         <br/>
         <common:errors/>
         <common:success/>
         <br/>
         <html:form action="/generateReportAction" focus="reportName">
           <table cellpadding="5" width="50%" cellspacing="0">
           <tr>
              <td align="left" width="25%">
                 <span class="label"><bean:message key="field.reportTemplate"/></span>
              </td>
              <td align="left">
				Rapport Excel
              </td>
           </tr>
           <tr>
              <td align="left" width="25%">
                 <span class="label"><bean:message key="field.livrets"/></span>
              </td>
              <td align="left">
                 <html:select property="idLivret" size="1">
                    <html:options property="id" labelProperty="nom" collection="LIVRET" />
                 </html:select>
              </td>
           </tr>
           <tr>
              <td align="left">
                 <span class="label"><bean:message key="field.exportPath"/></span>
              </td>
              <td align="left">
                 <html:text property="exportPath" size="40"/>
              </td>
           </tr>
           </table>
           <br/>
           <p><span class="titrePage"><bean:message key="title.eleveList"/></span></p>
           <span class="label"><bean:message key="field.classe"/></span>
           <teachertools:classe onchange="reloadAction();" />
           <br /><br />
	         <display:table name="ELEVE" id="eleve" style="width: 50%;" class="dtable" pagesize="20" requestURI="/updateEleveAction.do?submit=Rechercher">
				<display:column title="<input type='checkbox' name='allbox'
					onclick='invertCheckboxStatus(\"eleveIds\", this.form.allbox.checked)' style='margin: 0 0 0 4px' />"
					class="id" titleKey="field.num" sortable="true">
					<input type="checkbox" name="eleveIds" value="${eleve.id}" />
				</display:column>
				<display:column property="nom"  titleKey="field.nom" sortable="true" />
				<display:column property="prenom" titleKey="field.prenom" sortable="true" />
	         </display:table>
            <br/>
            <br/>
            <input value="<bean:message key="button.generate"/>" type="submit" name="submit"/>
            <teachertools:cancelButton />
         </html:form>
      </blockquote>

<%@ include file="/inc/footer.jsp" %>
